home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / Arkanoid Flash.swf / scripts / frame_77 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  3.1 KB  |  129 lines

  1. setProperty("/yellow", _visible, "1");
  2. setProperty("/blue", _visible, "1");
  3. setProperty("/green", _visible, "1");
  4. setProperty("/red", _visible, "1");
  5. level_is = "3";
  6. noOfBricks = "30";
  7. depth = "1";
  8. rows = "0";
  9. cols = "0";
  10. while("10" >= rows)
  11. {
  12.    while("9" >= cols)
  13.    {
  14.       duplicateMovieClip("/red","brick" add cols add rows,depth + 16384);
  15.       setProperty("brick" add cols add rows, _X, "30" + "40" * cols);
  16.       setProperty("brick" add cols add rows, _Y, "20" + "20" * rows);
  17.       cols += "1";
  18.       depth += "1";
  19.    }
  20.    cols = "0";
  21.    rows += "5";
  22. }
  23. rows = "4";
  24. cols = "2";
  25. while(rows == "4")
  26. {
  27.    while("9" >= cols)
  28.    {
  29.       duplicateMovieClip("/yellow","brick" add cols add rows,depth + 16384);
  30.       setProperty("brick" add cols add rows, _X, "30" + "40" * cols);
  31.       setProperty("brick" add cols add rows, _Y, "20" + "20" * rows);
  32.       cols += "1";
  33.       depth += "1";
  34.    }
  35.    rows += "1";
  36. }
  37. rows = "9";
  38. cols = "0";
  39. while(rows == "9")
  40. {
  41.    while("7" >= cols)
  42.    {
  43.       duplicateMovieClip("/yellow","brick" add cols add rows,depth + 16384);
  44.       setProperty("brick" add cols add rows, _X, "30" + "40" * cols);
  45.       setProperty("brick" add cols add rows, _Y, "20" + "20" * rows);
  46.       cols += "1";
  47.       depth += "1";
  48.    }
  49.    rows += "1";
  50. }
  51. rows = "14";
  52. cols = "2";
  53. while(rows == "14")
  54. {
  55.    while("9" >= cols)
  56.    {
  57.       duplicateMovieClip("/yellow","brick" add cols add rows,depth + 16384);
  58.       setProperty("brick" add cols add rows, _X, "30" + "40" * cols);
  59.       setProperty("brick" add cols add rows, _Y, "20" + "20" * rows);
  60.       cols += "1";
  61.       depth += "1";
  62.    }
  63.    rows += "1";
  64. }
  65. i = "1";
  66. noOfC = "4";
  67. while(noOfC >= i)
  68. {
  69.    RandRows = random("11");
  70.    RandCols = random("10");
  71.    set("c" add i,RandCols add RandRows);
  72.    trace("c" add i add " = " add eval("c" add i));
  73.    i += "1";
  74. }
  75. i = "1";
  76. noOfE = "1";
  77. while(noOfE >= i)
  78. {
  79.    RandRows = random("11");
  80.    RandCols = random("10");
  81.    set("e" add i,RandCols add RandRows);
  82.    trace("e" add i add " = " add eval("e" add i));
  83.    i += "1";
  84. }
  85. i = "1";
  86. noOfSL = "1";
  87. while(noOfSL >= i)
  88. {
  89.    RandRows = random("11");
  90.    RandCols = random("10");
  91.    set("sl" add i,RandCols add RandRows);
  92.    trace("sl" add i add " = " add eval("sl" add i));
  93.    i += "1";
  94. }
  95. i = "1";
  96. noOfB = "2";
  97. while(noOfB >= i)
  98. {
  99.    RandRows = random("11");
  100.    RandCols = random("10");
  101.    set("b" add i,RandCols add RandRows);
  102.    trace("b" add i add " = " add eval("b" add i));
  103.    i += "1";
  104. }
  105. i = "1";
  106. noOfSH = "1";
  107. while(noOfSH >= i)
  108. {
  109.    RandRows = random("11");
  110.    RandCols = random("10");
  111.    set("sh" add i,RandCols add RandRows);
  112.    trace("sh" add i add " = " add eval("sh" add i));
  113.    i += "1";
  114. }
  115. i = "1";
  116. noOfF = "1";
  117. while(noOfF >= i)
  118. {
  119.    RandRows = random("11");
  120.    RandCols = random("10");
  121.    set("f" add i,RandCols add RandRows);
  122.    trace("f" add i add " = " add eval("f" add i));
  123.    i += "1";
  124. }
  125. setProperty("/yellow", _visible, "0");
  126. setProperty("/blue", _visible, "0");
  127. setProperty("/green", _visible, "0");
  128. setProperty("/red", _visible, "0");
  129.